🚀 [Feature]: Repository file and directory contents now retrievable#307
Open
Marius Storhaug (MariusStorhaug) wants to merge 7 commits intomainfrom
Open
🚀 [Feature]: Repository file and directory contents now retrievable#307Marius Storhaug (MariusStorhaug) wants to merge 7 commits intomainfrom
Marius Storhaug (MariusStorhaug) wants to merge 7 commits intomainfrom
Conversation
…ion to clarify output and notes
…ders and subdirectories in a GitHub repository
ad98f64 to
3dbdfc3
Compare
Get-GitHubAPIDescriptor and Get-GitHubRepositoryContent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Repository file and directory contents can now be retrieved directly from PowerShell. A new
Get-GitHubRepositoryContentcommand returns the contents of a file or directory at a given path and optional ref (branch, tag, or commit SHA).New: Retrieve repository file and directory contents
Get-GitHubRepositoryContentreturns metadata and content for files, or a listing for directories, in a GitHub repository. By default it returns the repository root. Use-Pathto target a specific file or directory, and-Refto specify a branch, tag, or commit.Technical Details
Get-GitHubRepositoryContentcallsGET /repos/{owner}/{repo}/contents/{path}with optionalrefquery parameter./repos/{owner}/{repo}/contents/{path}GET and/repos/{owner}/{repo}/readmeGET as covered.tools/Get-GitHubAPIDescriptor.ps1andtools/utilities/helpers added for API discovery tooling (non-shipped).